var SelectClick = 1;
function onSelectClick(){
    var select_list = document.getElementsByClassName("select_list")[0];
    var sl_content = document.getElementsByClassName("sl_content")[0];

    sl_content.style.borderWidth="1px 1px 0 1px";
    sl_content.style.borderStyle="solid";
    sl_content.style.borderColor="#000";
    sl_content.style.borderRadius="0";
    
    SelectClick++;
    if(SelectClick == 2){
        select_list.style.display="block";
    }
    if(SelectClick == 3){
        select_list.style.display="none";
        sl_content.style.border="1px solid #CCCCCC";
        sl_content.style.borderRadius=4+"px";
        SelectClick = 1;
    }
}

function inputPhoneBlur(t){
    var msg = document.getElementById("check_uid_param_msg");
    if(t.value==""){
        msg.innerHTML="手机号码不能为空。";
        msg.style.display="block";
        msg.style.color="red";
        t.style.background="#FCF7F7";
        t.style.border="1px solid #FA2A2D";
    }
}



function inputYzmBlur(t){
    var msg = document.getElementById("check_yzm_param_msg");
    if(t.value==""){
        msg.innerHTML="请输入短信验证码。";
        msg.style.display="block";
        msg.style.color="red";
    }
    t.style.border="#d0d0d0 1px solid";
}

function inputYzmFocus(t){
    t.style.border="#000 1px solid";
}




var ub = false;
var pb = false;

function inputClick(){
    var msg1 = document.getElementById("check_uid_param_msg");
    var msg2 = document.getElementById("check_yzm_param_msg");
    var uid = document.getElementById("uid");
    var yzm = document.getElementById("yzm");
    if(uid.value==""){
        msg1.innerHTML="手机号码不能为空。";
        msg1.style.display="block";
        msg1.style.color="red";
        uid.style.background="#FCF7F7";
        uid.style.border="1px solid #FA2A2D";
        ub=false;
    }else{
        msg1.style.display="none";
        uid.style.background="#fff";
        ub=true;
    }

    if(yzm.value==""){
        msg2.innerHTML="请输入短信验证码。";
        msg2.style.display="block";
        msg2.style.color="red";
        ub=false;
    }else{
        msg2.style.display="none";
        yzm.style.background="#fff";
        ub=true;
    }

    if(yzm.value==""){
        pb=false;
    }else{
        pb=true;
    }
}





function formSubmit(){
    if(ub && pb){
        return true;
    }else{
        return false;
    }
}